﻿<Window x:Class="Library.Windows.Books"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:Library.Windows"
        mc:Ignorable="d"
        Title="Список книг" Height="650" Width="800" Loaded="Window_Loaded">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>

        <GroupBox Header="Добавление новой книги">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition/>
                    <RowDefinition/>
                </Grid.RowDefinitions>
                
                <StackPanel>
                    <Label Content="Автор"/>
                    <StackPanel Orientation="Horizontal">
                        <ComboBox Width="150"
                                  ItemsSource="{Binding}"
                                  x:Name="cbAuthors"/>
                        <Button Width="30"
                                Margin="5 0 0 0"
                                Content=">"/>
                    </StackPanel>
                    
                    <Label Content="Название"/>
                    <TextBox Height="50" TextWrapping="Wrap"/>
                    <Label Content="Жанр"/>
                    <ComboBox/>
                    <Label Content="ISBN"/>
                    <TextBox/>
                    <Label Content="Год издания"/>
                    <TextBox/>
                    <Button Content="Добавить книгу"/>
                </StackPanel>
                <GroupBox Grid.Column="1" Header="Добавленные авторы">
                    <ListBox/>
                </GroupBox>
                
            </Grid>
        </GroupBox>
        <GroupBox Grid.Column="1" Header="Список книг">
            <ListBox/>
        </GroupBox>
    </Grid>
</Window>
